<form action="<?php echo url_for('brokerage/redirect') ?>" method="POST">
  <select name='id'>
  	<?php foreach($brokerages as $record): ?>
	<option value = '<?php echo $record;?>'><?php echo $record->getNome();?></option>
	<?php endforeach; ?>
  </select><br /><br />
  <input type="submit" class="bottone" value="<?php echo __('Invia');?>">
</form><br /><br />

<form method="POST" action="<?php echo url_for('brokerage/results') ?>">
<table>
  <tr>
	<td valign="top">
		<?php echo __('Tipo');?><br />
	  <select name='tipo'>
		<option value = '0'  selected >&nbsp;&nbsp;
		<option value = '1' ><?php echo __('Motore')?></option>
		<option value = '2' ><?php echo __('Vela')?></option>
		<option value = '3' ><?php echo __('Caicco')?></option>
		<option value = '4' ><?php echo __('Catamarano')?></option>
	  </select><br />
	  </td>
  </tr>
    <tr>
	<td valign="top">
		<?php echo __('Anno');?><br />
	  <select name='anno'>
		<option value = '0'  selected >&nbsp;&nbsp;</option>
		<option value = '1'>1900-1930</option>
		<option value = '2'>1930-1960</option>
		<option value = '3'>1960-1990</option>
		<?php for($x=1991;$x<2019;$x++): ?>
		  <option value = '<?php echo $x; ?>'><?php echo $x; ?></option>
		<?php endfor; ?>
	  </select><br />
	  </td>
	</tr>
    <tr>
	<td valign="top">
		<?php echo __('Prezzo');?><br />
	  <select name='prezzo'>
	  <?php use_helper('Number') ?>
		<option value = '0'  selected >&nbsp;&nbsp;</option>
		<option value = '1'>0-<?php echo format_number(50000.0) ?></option>
		<option value = '2'><?php echo format_number(50000.0) ?> - <?php echo format_number(150000.0) ?></option>
		<option value = '3'><?php echo format_number(150000.0) ?> - <?php echo format_number(300000.0) ?></option>
		<option value = '4'><?php echo format_number(300000.0) ?> - <?php echo format_number(600000.0) ?></option>
		<option value = '5'><?php echo format_number(600000.0) ?> - <?php echo format_number(1000000.0) ?></option>
		<option value = '6'><?php echo format_number(1000000.0) ?> - <?php echo format_number(2000000.0) ?></option>
		<option value = '7'>> <?php echo format_number(2000000.0) ?></option>
	  </select>
	  </td>
  </tr>
  <tr>
	<td valign="top">
		<?php echo __('Lunghezza');?><br />
	  <select name='lunghezza'>
		<option value = '0'  selected >&nbsp;&nbsp;</option>
		<?php for($x=0;$x<6;$x++): ?>
		<option value = '<?php echo $x+1; ?>'>
			<?php echo ($x*10); ?> - <?php echo ($x*10)+10; ?>
		</option>
		<?php endfor; ?>
		<option value = '7'  >60 - 100</option>
	  </select>
	  </td>
	</tr>
</table><br />
<input type="submit" class="bottone" value="<?php echo __('Invia');?>">
</form><br /><br />
